from WoniuBoss.Login import LogIn


class MarketMgt:
    def __init__(self):
        self.base_url = 'http://192.168.2.155:8080'
        login = LogIn(self.base_url)
        self.s = login.login()

    def upload_res(self):
        #   上传专属-2.5上传后无响应, 无法判断是否上传成功
        url = self.base_url + '/WoniuBoss2.5/upload?dept=3&region=a.txt'
        data = {'regionSelect': 1, 'dpetSelect': 3}
        upload_file = {'token': open('E:\Python\APITest\WoniuBoss\resume.xls', 'rb')}
        s = self.s.post(url, data=data, files=upload_file)
